package com.hexu.event.bean;

import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleStringProperty;

public class TicketHistoryBean {

    private SimpleStringProperty phoneNumber;
    private SimpleIntegerProperty ticketFare;
    private SimpleStringProperty  attractionsName;
    private SimpleStringProperty buyTime;


    public TicketHistoryBean(){
        super();
    }

    public TicketHistoryBean(String attractionsName, Integer ticketFare,String phoneNumber,String buyTime) {
        this.phoneNumber = new SimpleStringProperty(phoneNumber);
        this.ticketFare = new SimpleIntegerProperty(ticketFare);
        this.attractionsName = new SimpleStringProperty(attractionsName);
        this.buyTime = new SimpleStringProperty(buyTime);
    }

    //getter and setter

    public String getPhoneNumber() {
        return phoneNumber.get();
    }

    public SimpleStringProperty phoneNumberProperty() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber.set(phoneNumber);
    }

    public int getTicketFare() {
        return ticketFare.get();
    }

    public SimpleIntegerProperty ticketFareProperty() {
        return ticketFare;
    }

    public void setTicketFare(int ticketFare) {
        this.ticketFare.set(ticketFare);
    }

    public String getAttractionsName() {
        return attractionsName.get();
    }

    public SimpleStringProperty attractionsNameProperty() {
        return attractionsName;
    }

    public void setAttractionsName(String attractionsName) {
        this.attractionsName.set(attractionsName);
    }

    public String getBuyTime() {
        return buyTime.get();
    }

    public SimpleStringProperty buyTimeProperty() {
        return buyTime;
    }

    public void setBuyTime(String buyTime) {
        this.buyTime.set(buyTime);
    }
}
